package com.usian.mapper;

import com.usian.shop.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-01-10
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    List<Order> selectLists(Order order);
@Insert("insert into `order` (gid,gname,omoney,createtime) values (#{gid},#{gname},#{omoney},#{createtime})")
    void inserts(Order order);
}
